-- GENERATED SPELL FOR [Death's Watch] --


function spell0_21516(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(37621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21516', 3000, 1)
end

function spell1_21516(pUnit, Event) --@Tongue Lash,n/a--
pUnit:FullCastSpellOnTarget(36398,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21516', 662, 1)
end

function Sorts_21516(pUnit, Event)
local choix_sorts_21516 = math.random(0, 1)
if choix_sorts_21516 == 0 then
pUnit:RegisterEvent('spell0_21516', 1, 1)
end
if choix_sorts_21516 == 1 then
pUnit:RegisterEvent('spell1_21516', 1, 1)
end
end

function mob21516_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21516', math.random(1500, 3000), 1)
end

function mob21516_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21516_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21516_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21516, 1, 'mob21516_Action')
RegisterUnitEvent(21516, 2, 'mob21516_Leave')
RegisterUnitEvent(21516, 3, 'mob21516_Kill')
RegisterUnitEvent(21516, 4, 'mob21516_Die')
